package com.zqx.flyweight.flyweight;

import com.zqx.flyweight.outflyweight.Coordinates;

/**
 * description: 抽象享元类
 * @author zqx
 * @date 2018/09/04
 */
public abstract class IgoChessman {

    public abstract String getColor();

    public void display(Coordinates coordinates)
    {
        System.out.println("棋子颜色："+this.getColor()+",棋子的位置："+coordinates.getX()+","+coordinates.getY());
    }
}
